/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetbi_objets;

import java.util.Objects;

/**
 * Projet BI - M2 FIC 2012-2013
 *
 * @author Jef, Tuan-Long, William, Mohamed
 */
public class OTechnoFormation {
    private int idTechnoFormation;
    private int idFormation;
    private String technoApprise;

    public OTechnoFormation() {
    }

    public OTechnoFormation(int idTechnoFormation, int idFormation, String technoApprise) {
        this.idTechnoFormation = idTechnoFormation;
        this.idFormation = idFormation;
        this.technoApprise = technoApprise;
    }

    public int getIdTechnoFormation() {
        return idTechnoFormation;
    }

    public void setIdTechnoFormation(int idTechnoFormation) {
        this.idTechnoFormation = idTechnoFormation;
    }

    public int getIdFormation() {
        return idFormation;
    }

    public void setIdFormation(int idFormation) {
        this.idFormation = idFormation;
    }

    public String getTechnoApprise() {
        return technoApprise;
    }

    public void setTechnoApprise(String technoApprise) {
        this.technoApprise = technoApprise;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + this.idTechnoFormation;
        hash = 37 * hash + this.idFormation;
        hash = 37 * hash + Objects.hashCode(this.technoApprise);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final OTechnoFormation other = (OTechnoFormation) obj;
        if (this.idTechnoFormation != other.idTechnoFormation) {
            return false;
        }
        if (this.idFormation != other.idFormation) {
            return false;
        }
        if (!Objects.equals(this.technoApprise, other.technoApprise)) {
            return false;
        }
        return true;
    }
    
    
}
